﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace L2
{
    class NPCPedlar : NPC
    {
        public string wq;
        public string Wq { get { return this.wq; } set { this.wq = value; } }
        public NPCPedlar() { }
        public NPCPedlar(string Name, string Type, string Wq)
        {
            this.name = Name;
            this.type = Type;
            this.wq = Wq;
        }
        public override void Speak()
        {
            Console.WriteLine("你好，我的名字是{0},我的类型是{1},你需要{2}吗？", this.name, this.type, this.wq);

        }
    }
}
